package com.meizi.lushi.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meizi.core.tool.api.PageUtils;
import com.meizi.core.tool.api.Query;
import com.meizi.lushi.dao.InHeroDao;
import com.meizi.lushi.entity.InHeroEntity;
import com.meizi.lushi.service.InHeroService;


@Service("inHeroService")
public class InHeroServiceImpl extends ServiceImpl<InHeroDao, InHeroEntity> implements InHeroService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InHeroEntity> page = this.page(
                new Query<InHeroEntity>().getPage(params),
                new QueryWrapper<InHeroEntity>()
        );

        return new PageUtils(page);
    }

}